Skip to main content

Chapter 43 - Terraform CLI Config File - .terraform.rc

Documentation: https://developer.hashicorp.com/terraform/cli/config/config-file This file goes in your AppData directory.

This file contains credentials and other helpful information for your entire Terraform configuration on your machine.

credentials "app.terraform.io" {
token = "xxxxxx.yyyy.zzzzzzzzzzzzz"
}

If you don't want to store your credentials in hard text, you can use a credential helper.

Plugin Cache directory


You can set alternative plugin directories. This may allow you to install and init your terraform without reaching out to Hashicorp to download the provider. This is helpful when you are behind a firewall or where you are running Terraform without access to the public Internet.

Dev overrides


You can use this to override a specific provider for a specific resource.